let indicator = this.statusArea[role];
if (!indicator)
continue;
- indicator._panelContainer.hide();
+ indicator.container.hide();
}
},
},
_addToPanelBox: function(role, indicator, position, box) {
- let container = indicator._panelContainer;
- if (!container) {
- container = new St.Bin({ y_fill: true,
- child: indicator.actor });
- indicator._panelContainer = container;
- }
+ let container = indicator.container;
container.show();
let parent = container.get_parent();
- if (parent) {
+ if (parent)
parent.remove_actor(container);
- }
box.insert_child_at_index(container, position);
if (indicator.menu)
this.actor = new Shell.GenericContainer(params);
this.actor._delegate = this;
+ this.container = new St.Bin({ y_fill: true,
+ x_fill: true,
+ child: this.actor });
+
this.actor.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth));
this.actor.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight));
this.actor.connect('allocate', Lang.bind(this, this._allocate));